home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-04-12 | 1.3 KB | 55 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="2"
- "COUNT"="1"
- "UIPATH"="System\Software Installation\Windows File Protection"
- "NAME"="WFP Disk Quota"
- "VERSION"="1.14"
- "OSVERSION"="000101"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Quota (MB)"
- "DESCRIPTION 1"="By default, WFP uses an unlimited amount of disk space for it's cache of system files."
- "DESCRIPTION 2"="However, you can limit this space here to suit your needs."
- "DESCRIPTION 3"="To have the default value again, just clear the field."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
-
- sV1="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SFCQuota" 'DW
- sV1_Val=4294967295
-
-
- Sub Plugin_Initialize
- s=RegReadValue(sV1)
-
- 'NOTE: this number is so BIG, you need to compare it as string...
- if s=cstr(sV1_Val) or IsEmpty(s) then
- setuielement 1,"" 'default value, set to empty field
- else
- setuielement 1,s
- end if
- End Sub
-
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- if len(s)=0 then
- s=RegReadValue(sV1)
- if IsEmpty(s)=false then RegDeleteValue(sV1)
- else
- Call RegWriteValue(sV1,s,2)
- end if
-
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-